package app.purchase.a571xz.com.myandroidframe.repository;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

public class ImageLoaderRepository {

    public static void loadNet(String url, ImageView imageView) {
        Glide.with(imageView.getContext()).asBitmap().load(url).into(imageView);
    }

    public static void loadNet(String url, ImageView imageView, RequestOptions options) {
        Glide.with(imageView.getContext()).asBitmap().apply(options).load(url).into(imageView);
    }
}
